import http from '../utils/http';

export function getContract(params) {
    return http.get('/api/contract', params);
}

export function addContract(params) {
    return http.post('/api/contract', params);
}

export function updateContract(params) {
    return http.put(`/api/contract/${params.id}`, params);
}

export function delContract(params) {
    return http.delete(`/api/contract/${params.id}`, params);
}

export function getContractDetail(params) {
    return http.get(`/api/contract/${params.id}`, params);
}

export function getContractDownload(params) {
    return http.get('/api/contract/download', params);
}


